text text
\if something \else elsebody
\fi

text \begin{myenv}
  body of myenv
  body of myenv
  body of myenv \end{myenv}

text

\begin{anotherenv}
  body
  body
  body
\end{anotherenv}

text text \if something \fi
